<template>
    <van-popup v-model="isShow" position="bottom">
        <van-picker
            show-toolbar
            :columns="list"
            @confirm="confirm"
            @cancel="isShow = false"
            default-index="0"
            :value-key="list&&list[0]&&list[0].title?'title':'daysNum'"
        />
    </van-popup>
</template>
<script>
import {Progress} from "vant";
export default {
    props:['list'],
    data(){
        return {
            isShow:false,
            index:''
        }
    },
    methods:{
        show(i){
            this.isShow = true
            this.index = i
        },
        confirm(value){
            this.$emit('confirm',value,this.index)
            this.isShow = false
        }
    }
}
</script>
<style lang="less">
    
</style>